package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.lang.reflect.Array;
import java.util.Arrays;

@Controller
public class TestController {
    @RequestMapping("/test/test1")
    public void test1(String [] param){
        System.out.println(Arrays.toString(param));
    }

    @RequestMapping("/test/test2/{a}")
    public void test2(@PathVariable String a){
        System.out.println(a);
    }

}
